package com.qf.controller;

import com.qf.common.Dto.OrderDto;
import com.qf.entity.Order;
import com.qf.service.OrderAppService;
import com.qf.vo.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author KING
 * @ClassName: com.qf.controller.OrderAppController
 * @Description: 该类的功能描述
 * @date: 2021/10/30 10:10
 */
@RestController
@RequestMapping("/order/app")
public class OrderAppController {
    @Resource
    private OrderAppService orderAppService;

    @PostMapping("/add")
    public ResponseResult<Boolean> addOrder(@RequestBody OrderDto orderDto) {
        Boolean isAdd = orderAppService.addOrder(orderDto);
        return ResponseResult.success(isAdd);
    }
}
